Skip to content

Impl config module - #23

Merged
MykolaSuperman merged 3 commits into
aosedge:developfrom
MykolaSuperman:config
Jul 8, 2025
Merged

Impl config module #23
MykolaSuperman merged 3 commits into
aosedge:developfrom
MykolaSuperman:config

Conversation

@MykolaSuperman

Copy link
Copy Markdown

No description provided.

@codecov

codecov Bot commented Jun 30, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 94.92063% with 16 lines in your changes missing coverage. Please review.

Please upload report for BASE (develop@aa787fb). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/common/config/config.cpp 72.72% 9 Missing ⚠️
src/cm/config/config.cpp 96.15% 4 Missing ⚠️
src/sm/config/config.cpp 76.92% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             develop      #23   +/-   ##
==========================================
  Coverage           ?   78.72%           
==========================================
  Files              ?      197           
  Lines              ?    21468           
  Branches           ?     2056           
==========================================
  Hits               ?    16900           
  Misses             ?     4568           
  Partials           ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mykola-kobets-epam

Copy link
Copy Markdown
Collaborator

Reviewed-by: Mykola Kobets <mykola_kobets@epam.com>

@mykola-kobets-epam mykola-kobets-epam left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed-by: Mykola Kobets <mykola_kobets@epam.com>

Comment thread src/cm/config/config.hpp Outdated
Comment thread src/cm/config/tests/config.cpp Outdated
Comment thread src/common/CMakeLists.txt Outdated
Comment thread src/common/config/tests/config.cpp Outdated

@mlohvynenko mlohvynenko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com>

Comment thread src/common/CMakeLists.txt
@@ -36,6 +36,7 @@ add_subdirectory(logprovider)
add_subdirectory(migration)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commit message

common: config:

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread src/common/config/config.cpp Outdated
#include <filesystem>

#include <common/utils/exception.hpp>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove line

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread src/common/config/config.cpp Outdated
{
try {
const auto pollPeriod = object.GetValue<std::string>("pollPeriod", cDefaultMonitoringPollPeriod);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

* Functions
**********************************************************************************************************************/

/*

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expect here only one method:

/*
 * Parses config from file.
 *
 * @param filename config file name.
 * @param[out] config config instance.
 * @return Error.
 */
Error ParseConfig(const std::string& filename, Config& config);

Similar to SM.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But this is a general function in common, which is used in SM and CM

@MykolaSuperman
MykolaSuperman force-pushed the config branch 2 times, most recently from df82478 to cf5bd0a Compare July 3, 2025 06:55

@al1img al1img left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>

Mykola Solianko added 3 commits July 4, 2025 15:17
Signed-off-by: Mykola Solianko <mykola_solianko@epam.com>
Reviewed-by: Mykola Kobets <mykola_kobets@epam.com>
Reviewed-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com>
Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
Signed-off-by: Mykola Solianko <mykola_solianko@epam.com>
Reviewed-by: Mykola Kobets <mykola_kobets@epam.com>
Reviewed-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com>
Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
Signed-off-by: Mykola Solianko <mykola_solianko@epam.com>
Reviewed-by: Mykola Kobets <mykola_kobets@epam.com>
Reviewed-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com>
Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
@sonarqubecloud

sonarqubecloud Bot commented Jul 4, 2025

Copy link
Copy Markdown

@MykolaSuperman
MykolaSuperman merged commit d69b22c into aosedge:develop Jul 8, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants